<?php

function my_autoloader($classname)
{
	if(stripos($classname, '_'))
	{
		
		$white = array(
			'Dao'=>array(
				'Pdo'
			),
			'Services' => array(
				'Image',
				'TaobaoClient',
				'TaobaoQuery',
				'Tbsb',
				'Utility',
				'Stats'
			)
		);
		$dir = explode('_',$classname);
		if($white[$dir[0]] && in_array($dir[1],$white[$dir[0]])){
			$path = str_replace('_', '/', $classname);
			require_once dirname(dirname(__FILE__)).'/'.$dir[0].'/'.$dir[1].'.php';

		}
	}
}
spl_autoload_register("my_autoloader",true);

?>